package com.kksoft.readcm.views;

import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import java.util.ArrayList;
import java.util.concurrent.ConcurrentHashMap;

public class AutoCompleteScroller extends RelativeLayout
{
  private Object a;
  private ArrayList b;
  private ArrayList c;
  private ArrayList d;
  private ArrayList e;
  private LinearLayout f;
  private DetectableHoriScrollView g;
  private c h;
  private final w i;
  private ConcurrentHashMap j;

  public AutoCompleteScroller(Context context, AttributeSet attributeset)
  {
      super(context, attributeset);
      Object obj = new Object();
      a = obj;
      ArrayList arraylist = new ArrayList();
      b = arraylist;
      ArrayList arraylist1 = new ArrayList();
      c = arraylist1;
      ArrayList arraylist2 = new ArrayList();
      d = arraylist2;
      ArrayList arraylist3 = new ArrayList();
      e = arraylist3;
      f = null;
      g = null;
      w w1 = new w(this);
      i = w1;
      ConcurrentHashMap concurrenthashmap = new ConcurrentHashMap();
      j = concurrenthashmap;
  }

  public AutoCompleteScroller(Context context, AttributeSet attributeset, int k)
  {
      super(context, attributeset, k);
      Object obj = new Object();
      a = obj;
      ArrayList arraylist = new ArrayList();
      b = arraylist;
      ArrayList arraylist1 = new ArrayList();
      c = arraylist1;
      ArrayList arraylist2 = new ArrayList();
      d = arraylist2;
      ArrayList arraylist3 = new ArrayList();
      e = arraylist3;
      f = null;
      g = null;
      w w1 = new w(this);
      i = w1;
      ConcurrentHashMap concurrenthashmap = new ConcurrentHashMap();
      j = concurrenthashmap;
  }

  static ConcurrentHashMap a(AutoCompleteScroller autocompletescroller)
  {
      return autocompletescroller.j;
  }

  static void a(AutoCompleteScroller autocompletescroller, ArrayList arraylist)
  {
      autocompletescroller.d = arraylist;
  }

  static Object b(AutoCompleteScroller autocompletescroller)
  {
      return autocompletescroller.a;
  }

  static ArrayList c(AutoCompleteScroller autocompletescroller)
  {
      return autocompletescroller.b;
  }

  static ArrayList d(AutoCompleteScroller autocompletescroller)
  {
      return autocompletescroller.c;
  }

  static ArrayList e(AutoCompleteScroller autocompletescroller)
  {
      return autocompletescroller.d;
  }

  static ArrayList f(AutoCompleteScroller autocompletescroller)
  {
      return autocompletescroller.e;
  }

  static DetectableHoriScrollView g(AutoCompleteScroller autocompletescroller)
  {
      return autocompletescroller.g;
  }

  static c h(AutoCompleteScroller autocompletescroller)
  {
      return autocompletescroller.h;
  }

  public final void a(c paramc)
  {
    this.h = paramc;
  }

  public final void a(String paramString, int paramInt1, int paramInt2)
  {
    ConcurrentHashMap localConcurrentHashMap = this.j;
    u localu = new u(this, paramInt1, paramInt2);
    Object localObject = localConcurrentHashMap.put(paramString, localu);
    //this.i.filter(paramString);
  }

  public final void a(ArrayList paramArrayList1, ArrayList paramArrayList2)
  {
    while (true)
    {
      int k;
      synchronized (this.a)
      {
        this.c = paramArrayList1;
        this.b = paramArrayList2;
        LayoutInflater localLayoutInflater = ((Activity)getContext()).getLayoutInflater();
        View localView = localLayoutInflater.inflate(2130903066, this);
        DetectableHoriScrollView localDetectableHoriScrollView = (DetectableHoriScrollView)findViewById(2131361917);
        this.g = localDetectableHoriScrollView;
        LinearLayout localLinearLayout = (LinearLayout)findViewById(2131361918);
        this.f = localLinearLayout;
        k = 0;
        if (k >= 10)
        {
          this.g.setVisibility(0);
          this.f.setVisibility(0);
          return;
        }
      }
      LayoutInflater localObject2;
//	Button localButton = (Button)localObject2.inflate(2130903050, null);
//      this.f.addView(localButton);
//      boolean bool = this.e.add(localButton);
//      localButton.setVisibility(8);
//      r localr = new r(this);
//      localButton.setOnClickListener(localr);
//      k += 1;
    }
  }

  public final void b(ArrayList paramArrayList1, ArrayList paramArrayList2)
  {
    synchronized (this.a)
    {
      this.c = paramArrayList1;
      this.b = paramArrayList2;
      return;
    }
  }
}